package br.com.generic;

import java.io.Serializable;

public class Interval<N extends Integer, Serializable> { // (1) INSERT TYPE CONSTRAINT HERE
	private N lower, upper;

	public void update(N value) {
		int i = value.intValue();
		if (lower == null || value.compareTo(lower) < 0)
			lower = value;
		if (upper == null || value.compareTo(upper) > 0)
			upper = value;
	}
}